package com.lw.ssm.pojo;


import org.springframework.util.StringUtils;

public class Score implements CheckNull{

  private long stuId;
  private long courseId;
  private double score;

  @Override
  public boolean isEmpty() {
    return StringUtils.hasText(String.valueOf(stuId));
  }

  public long getStuId() {
    return stuId;
  }

  public void setStuId(long stuId) {
    this.stuId = stuId;
  }


  public long getCourseId() {
    return courseId;
  }

  public void setCourseId(long courseId) {
    this.courseId = courseId;
  }


  public double getScore() {
    return score;
  }

  public void setScore(double score) {
    this.score = score;
  }

  @Override
  public String toString() {
    return "Score{" +
            "stuId=" + stuId +
            ", courseId=" + courseId +
            ", score=" + score +
            '}';
  }
}
